package c.a.a;

import android.graphics.Rect;
import b.f.i;
import c.a.a.b0.c;
import c.a.a.b0.d;
import c.a.a.b0.h;
import c.a.a.b0.l.e;
import java.util.HashSet;
import java.util.List;
import java.util.Map;

/* compiled from: LottieComposition */
public class f {
    public final u a = new u();
    public final HashSet<String> b = new HashSet();
    public Map<String, List<e>> c;
    public Map<String, m> d;
    public Map<String, c> e;
    public List<h> f;
    public i<d> g;
    public b.f.e<e> h;
    public List<e> i;
    public Rect j;
    public float k;
    public float l;
    public float m;
    public boolean n;
    public int o = 0;

    public void a(String str) {
        c.a.a.e0.c.b(str);
        this.b.add(str);
    }

    public float b() {
        return (float) ((long) ((c() / this.m) * 1000.0f));
    }

    public float c() {
        return this.l - this.k;
    }

    /* JADX WARNING: Missing block: B:8:0x003a, code skipped:
            if (r3.substring(0, r3.length() - 1).equalsIgnoreCase(r7) != false) goto L_0x003e;
     */
    public c.a.a.b0.h d(java.lang.String r7) {
        /*
        r6 = this;
        r0 = r6.f;
        r0.size();
        r0 = 0;
        r1 = 0;
    L_0x0007:
        r2 = r6.f;
        r2 = r2.size();
        if (r1 >= r2) goto L_0x0044;
    L_0x000f:
        r2 = r6.f;
        r2 = r2.get(r1);
        r2 = (c.a.a.b0.h) r2;
        r3 = r2.a;
        r3 = r3.equalsIgnoreCase(r7);
        r4 = 1;
        if (r3 == 0) goto L_0x0021;
    L_0x0020:
        goto L_0x003e;
    L_0x0021:
        r3 = r2.a;
        r5 = "\r";
        r3 = r3.endsWith(r5);
        if (r3 == 0) goto L_0x003d;
    L_0x002b:
        r3 = r2.a;
        r5 = r3.length();
        r5 = r5 - r4;
        r3 = r3.substring(r0, r5);
        r3 = r3.equalsIgnoreCase(r7);
        if (r3 == 0) goto L_0x003d;
    L_0x003c:
        goto L_0x003e;
    L_0x003d:
        r4 = 0;
    L_0x003e:
        if (r4 == 0) goto L_0x0041;
    L_0x0040:
        return r2;
    L_0x0041:
        r1 = r1 + 1;
        goto L_0x0007;
    L_0x0044:
        r7 = 0;
        return r7;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.a.a.f.d(java.lang.String):c.a.a.b0.h");
    }

    public e e(long j) {
        return (e) this.h.f(j, null);
    }

    public String toString() {
        StringBuilder stringBuilder = new StringBuilder("LottieComposition:\n");
        for (e a : this.i) {
            stringBuilder.append(a.a("\t"));
        }
        return stringBuilder.toString();
    }
}
